//
//  FKTeamAward.m
//  WanTao
//
//  Created by Macbook Pro on 2019/3/30.
//  Copyright © 2019 Macbook Pro. All rights reserved.
//

#import "FKTeamAward.h"

@implementation FKTeamAward

- (void)mj_keyValuesDidFinishConvertingToObject
{
    _addTime = [_add_time fk_timeWithFormat:@"yyyy-MM-dd"];
    if ([_child_sp_level isEqualToString:@"10"]) {
        _levelName = @"普通用户";
    } else if ([_child_sp_level isEqualToString:@"20"]) {
        _levelName = @"VIP";
        _levelTitleColor = [UIColor fk_colorWithHex:0xFF982F];
        _levelBgColor = [UIColor fk_colorWithHex:0xFF982F alpha:0.2];
    } else if ([_child_sp_level isEqualToString:@"30"]) {
        _levelName = @"总监";
        _levelTitleColor = [UIColor fk_colorWithHex:0x589EF7];
        _levelBgColor = [UIColor fk_colorWithHex:0x589EF7 alpha:0.2];
    } else if ([_child_sp_level isEqualToString:@"40"]) {
        _levelName = @"总经理";
        _levelTitleColor = [UIColor fk_colorWithHex:0xFF2E2E];
        _levelBgColor = [UIColor fk_colorWithHex:0xFF2E2E alpha:0.2];
    }
    _priceStr = fkFORMAT(@"￥%@", _commission);
}

@end
